package com.ce.pms.charge.model;

import com.sitechasia.webx.core.model.IDomainObject;
import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="FEE_NOTE_DETAIL")
public class FeeNoteDetailDomain
  implements IDomainObject
{

  @Id
  @GeneratedValue
  @Column(name="NOTE_DETAIL_ID")
  private Long keyword;

  @ManyToOne(fetch=FetchType.LAZY)
  @JoinColumn(name="NOTE_ID")
  private NoteDomain note;

  @Column(name="M_TRANS_ID")
  private Long mainNoteId;

  @Column(name="CHARGE_ITEM_NAME", length=50)
  private String chargeItemName;

  @Column(name="PERIOD", length=30)
  private String periodName;

  @Column(name="LAST_READING", precision=13, scale=2)
  private BigDecimal lastReading = new BigDecimal("0.00");

  @Column(name="THIS_READING", precision=13, scale=2)
  private BigDecimal thisReading = new BigDecimal("0.00");

  @Column(name="TOTAL_LATE_AMT ", precision=18, scale=2)
  private BigDecimal toalLateAmt = new BigDecimal("0.00");

  @Column(name="TOTAL_BASE_AMT", precision=18, scale=2)
  private BigDecimal totalBaseAmt = new BigDecimal("0.00");

  @Column(name="WASTAGE", precision=13, scale=2)
  private BigDecimal wastage = new BigDecimal("0.00");

  @Column(name="PRICE", precision=18, scale=2)
  private BigDecimal price = new BigDecimal("0.00");

  public Long getKeyword()
  {
    return this.keyword;
  }

  public void setKeyword(Long keyword) {
    this.keyword = keyword;
  }

  public Long getMainNoteId()
  {
    return this.mainNoteId;
  }

  public void setMainNoteId(Long mainNoteId) {
    this.mainNoteId = mainNoteId;
  }

  public NoteDomain getNote() {
    return this.note;
  }

  public void setNote(NoteDomain note) {
    this.note = note;
  }

  public String getChargeItemName() {
    return this.chargeItemName;
  }

  public void setChargeItemName(String chargeItemName) {
    this.chargeItemName = chargeItemName;
  }

  public String getPeriodName() {
    return this.periodName;
  }

  public void setPeriodName(String periodName) {
    this.periodName = periodName;
  }

  public BigDecimal getLastReading() {
    return this.lastReading;
  }

  public void setLastReading(BigDecimal lastReading) {
    this.lastReading = lastReading;
  }

  public BigDecimal getThisReading() {
    return this.thisReading;
  }

  public void setThisReading(BigDecimal thisReading) {
    this.thisReading = thisReading;
  }

  public BigDecimal getToalLateAmt()
  {
    return this.toalLateAmt;
  }

  public void setToalLateAmt(BigDecimal toalLateAmt) {
    this.toalLateAmt = toalLateAmt;
  }

  public BigDecimal getTotalBaseAmt() {
    return this.totalBaseAmt;
  }

  public void setTotalBaseAmt(BigDecimal totalBaseAmt) {
    this.totalBaseAmt = totalBaseAmt;
  }

  public BigDecimal getWastage() {
    return this.wastage;
  }

  public void setWastage(BigDecimal wastage) {
    this.wastage = wastage;
  }

  public BigDecimal getPrice() {
    return this.price;
  }

  public void setPrice(BigDecimal price) {
    this.price = price;
  }
}